* {
  box-sizing: border-box;
}

body {
  padding: 0;
  margin: 0;
  font-family: Arial, Helvetica, sans-serif;
  display: flex;
  height: 100vh;
  justify-content: center;
  align-items: center;
}

.container {
  height: 700px;
  width: 600px;
  /* background-color: red; */
  overflow: hidden;
  position: relative;
}

img {
  position: absolute;
  width: 600px;
  height: 660px;
  transition: all 1s ease;
}

.before {
  height: 40px;
  line-height: 40px;
  text-align: center;
  width: 295px;
  background-color: #663399;
  position: absolute;
  bottom: 0;
  color: white;
  cursor: pointer;
}
.before:hover {
  background-color: #7547a3;
}

.after {
  height: 40px;
  line-height: 40px;
  text-align: center;
  width: 295px;
  background-color: #663399;
  position: absolute;
  bottom: 0;
  right: 0;
  color: white;
  cursor: pointer;
}

.after:hover {
  background-color: #7547a3;
}
